package test;

import java.util.Scanner;

public class AwardChecker {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入 Java 成绩：");
        int javaScore = scanner.nextInt();
        System.out.print("请输入 SQL 成绩：");
        int sqlScore = scanner.nextInt();
        System.out.print("请输入音乐成绩：");
        int musicScore = scanner.nextInt();
        System.out.print("请输入语文成绩：");
        int chineseScore = scanner.nextInt();
        if (javaScore > 90 && sqlScore > 85 || musicScore == 100 && chineseScore > 95) {
            System.out.println("奖励一个华为手机。");
        } else {
            System.out.println("晚自习增加一个小时。");
        }
    }
}